package com.NHL.single
{
	import com.NHL.modules.mc.vo.AnimationVo;
	
	import flash.display.BitmapData;
	import flash.utils.Dictionary;

	public class ESource
	{
		private static var _anmiationDic:Dictionary;
		private static var _mapDic:Dictionary;
		private static var _inst:ESource;
		public function ESource()
		{
			_anmiationDic = new Dictionary();
			_mapDic = new Dictionary();
		}
		
		public static function getInstance():ESource
		{
			return _inst||(_inst = new ESource())
		}
		
		public function getAnimation(id:String):Vector.<AnimationVo>
		{
			return _anmiationDic[id];
		}
		
		public function addAnimation(id:String,vo:Vector.<AnimationVo>):void
		{
			_anmiationDic[id] = vo;
		}
		
		public function getMap(id:String):Vector.<BitmapData>
		{
			return _mapDic[id];
		}
		
		public function addMap(id:String,vo:Vector.<BitmapData>):void
		{
			_mapDic[id] = vo;	
		}
	}
}